<%--
  Created by IntelliJ IDEA.
  User: zheng
  Date: 2018/7/7
  Time: 21:29
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <jsp:include page="/WEB-INF/views/commons/common.jsp"/>
    <script src="/static/js/system/employee.js"></script>
    <title>Title</title>
</head>
<body>
<table id="employee_dg" ></table>
    <!--工具栏-->
<div id="tb">
    <a class="easyui-linkbutton" title="My Dialog"
       data-options="iconCls:'icon-add8',resizable:true,modal:true" data-cmd="add">增加
    </a>
    <a class="easyui-linkbutton" title="My Dialog"
       data-options="iconCls:'icon-remove8',resizable:true,modal:true" id="changstate" data-cmd="changState">离职
    </a>
    <a class="easyui-linkbutton" title="My Dialog"
       data-options="iconCls:'icon-edit8',resizable:true,modal:true" data-cmd="edit">修改
    </a>
    <a class="easyui-linkbutton" title="My Dialog"
       data-options="iconCls:'icon-reload8',resizable:true,modal:true" data-cmd="reload">刷新
    </a>

    <!--//高级查询-->
    <input class="easyui-textbox" type="text" name="keyword" id="keyword" prompt="账号/手机号码"/>
   入职时间:
    <input class="easyui-datebox" type="text" name="beginDate" id="beginDate"/>~
    <input class="easyui-datebox" type="text" name="endDate" id="endDate"/>

    <a class="easyui-linkbutton" data-options="iconCls:'icon-search8'" data-cmd="query">查询</a>
</div>


<!--输入信息用 dialog-->
<div id="dd">
    <form id="ff" method="post">
        <input type="hidden" id="empId" name="id">
        <table align="center" style="border-collapse: separate;border-spacing: 10px;">
            <tr>

                <td>用户名:</td>
                <td>
                    <input class="easyui-textbox" type="text" name="username" prompt="请输入用户名"

                           validType=" remote['/employee/validateUsername?id='+empId.value,'username']"/>
                </td>
            </tr>
            <tr>

                <td>真实姓名:</td>
                <td>
                    <input class="easyui-textbox" type="text" name="realname"/>
                </td>
            </tr>
            <tr>

                <td>联系电话:</td>
                <td>
                    <input class="easyui-textbox" type="text" name="tel"/>
                </td>
            </tr>
            <tr>

                <td>邮箱:</td>
                <td>
                    <input class="easyui-textbox" type="text" name="email"/>
                </td>
            </tr>
            <tr>
                <td>部门:</td>
                <td>
                    <input class="easyui-combobox" type="text" name="dept.id"
                           url="/department/selectAll"
                           valueField="id"
                           textField="name"
                           panelHeight="auto"
                    >
                </td>
            </tr>
            <tr>
                <td>管理员:</td>
                <td>
                    <input class="easyui-combobox" type="text" name="admin" data-options="
                    data:[{'value':'0' ,'text':'否' },{'value':'1' ,'text':'是' }],
                    valueField:'value', textField:'text', panelHeight:'auto'">
                </td>
            </tr>
            <tr>
                <td>角色:</td>
                <td>
                    <input class="easyui-combobox" type="text" id="roleIds" data-options="
                        valueField:'id',
                        textField:'name',
                        url:'/role/queryRoleList',
                        panelHeight:'auto',
                        multiple:'true'
                    ">
                </td>
            </tr>
        </table>
    </form>
</div>


<!--保存/取消按钮-->
<div id="bb">
    <a href="#" class="easyui-linkbutton" iconCls='icon-save8' data-cmd="save">保存</a>
    <a href="#" class="easyui-linkbutton" iconCls='icon-cancel8'data-cmd="cancel">关闭</a>
</div>

</body>
</html>
